package com.ruoyi.accountant.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;


@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class AccountDetail {
    private Long aid;
    private String dtype;
    private BigDecimal outmoney;
    private BigDecimal inmoney;
    private BigDecimal balance;
    private String comment;
    private Long ofReason;
    private Date proofDate;
    private String object;
    private String tag;
    private String attachment;
    private Long ofAccount;
    private Integer deleted;
    private Long ofDevice;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createtime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date transactionDate;
    private Long ofCompany;
    private Reason ofReasonObject; // 所属原因
    private Account ofAccountObject; // 所属账户
}